import request from '@/utils/request'

// 新增点任务
export function addPointTask(data) {
  return request({
    url: '/pointTask/pointInfo',
    method: 'post',
    data: data
  })
}

//根据ID删除点任务
export function deletePointTaskById(id) {
  return request({
    url: '/pointTask/pointInfo/' + id,
    method: 'delete'
  })
}

//根据ID批量删除所有任务
export function deleteAllTaskByIds(ids) {
  return request({
    url: '/pointTask/pointInfo/deleteByIds/',
    method: 'delete',
    data: ids
  })
}

// 查询点任务列表
export function getPointTaskList() {
  return request({
    url: '/pointTask/pointInfo/list',
    method: 'get',
  })
}
